package com.hxiaoyi.cloud.service.impl;

import com.hxiaoyi.cloud.dao.PaymentDao;
import com.hxiaoyi.cloud.entities.Payment;
import com.hxiaoyi.cloud.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * PaymentServiceImpl
 *
 * @author 黄敬意
 * @date 2022-02-02 14:15
 **/
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    /**
     * 描述
     * @author 黄敬意
     * @date 2022/2/2 13:55
     * @param payment
     * @return int
     **/
    @Override
    public int create(Payment payment){
        return paymentDao.create(payment);
    }
    /**
     * 描述
     * @author 黄敬意
     * @date 2022/2/2 13:59
     * @param id
     * @return Payment
     **/
    @Override
    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    }

}
